package saxon.gui;

import saxon.gui.view.swing.SwingXView;
import java.awt.EventQueue;
import org.apache.log4j.Logger;
import saxon.gui.controller.XController;
import saxon.gui.controller.XControllerImpl;
import saxon.gui.view.api.XView;

/**
 *
 * @author lennyn
 */
public class Main {
	
	private final static Logger logger = Logger.getLogger(Main.class);
	
	static {
		
	}

	/**
	 * @param args the command line arguments
	 */
	public static void main(String[] args) {
		logger.info(System.getProperty("user.dir"));
		logger.debug("Start");
		// Make sure all Swing/AWT instantiations and accesses are done on the
		// Event Dispatch Thread (EDT)
		EventQueue.invokeLater(new Runnable() {

			@Override
			public void run() {
				XController controller = new XControllerImpl();
				XView view = new SwingXView();
				view.setController(controller);
				controller.setView(view);
			}
		});
	}
}
